#ifndef _memory_h_
#define _memory_h_

#define CANARY_OK (0xDEADBEEF)
#define MAX_L (10)        
#define SUM_BLK (1024)       
#define BLK_SIZE (32)       // size of a block is 4 bytes
#define T_NUM (3);
#define SEM_FREE (1)
// the node stored in the tree
typedef struct Buddy{
    void* p;
    struct Buddy* left;
    struct Buddy* right;
} Buddy;

//header of memory block
typedef struct {
  int size;
  long canary;
} mem_header_t;


#endif
